package cn.omisheep.autt.core.browser;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * @author zhouxinchen
 * @since 1.1.7
 */
@Data
@AllArgsConstructor
public class ResultObject {
    private Charset charset = StandardCharsets.UTF_8;
    private byte[]  bytes   = new byte[0];

    public ResultObject() {
    }

    public String toString() {
        return new String(bytes, charset);
    }

    public byte[] toBytes() {
        return bytes;
    }

}
